package com.restaurant.application.consumption.support;

import com.nebutown.base.data.View;
import com.nebutown.supporthome.AbstractImpl;
import com.restaurant.application.consumption.Consumption;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class AbstractConsumption extends AbstractImpl implements Consumption {

    private static final Logger logger = LoggerFactory.getLogger(Consumption.class);

    public final Class<?> getEffectiveInterface() {
        return Consumption.class;
    }

    public Logger getLogger() {
        return logger;

    }

    private static final String privateDataType = "ConsumptionData";

    public ConsumptionData getData() {
        return escort.getData(ConsumptionData.class);
    }

    public void setData(ConsumptionData data) {
        escort.setData(data);
    }

    public View newConsumption(String id, ConsumptionData data) {
        return buildView(id, com.restaurant.application.consumption.Consumption.class, "consumption", data, null, null);
    }
}
